﻿using Chinook.Core.DomainModel;
using FluentNHibernate.Mapping;

namespace Chinook.Core.FNHMappings
{
    public class AlbumMap: ClassMap<Album>
    {
        public AlbumMap()
        {
            //Table that has been referred to
            Table("Album");
            //Cache.Region("CacheAlbum").ReadWrite();  
            //Mapping for Primary key column
            Id(x => x.Id, "AlbumId").GeneratedBy.Identity();
            //Map table Columns to POCO Fields
            Map(x => x.Title);           
        }
    }
}
